package four.homework;

import four.FactoryExample.framework.Factory;
import four.FactoryExample.framework.Product;

public class Main {
    public static void main(String[] args) {
        Factory playerFactory = new PlayFactory();
        Product player1 = playerFactory.create("WindowMediaPlayer");
        Product player2 = playerFactory.create("RealPlayer");
        Product player3 = playerFactory.create("QuickTime");
        player1.use();
        player2.use();
        player3.use();
    }
}
